/**********************************************************************
 *
 * $RCSfile: MetaObjectEvent.java,v $  $Revision: 1.1 $  $Date: 2009/08/09 07:59:09 $
 *
 * $Log: MetaObjectEvent.java,v $
 * Revision 1.1  2009/08/09 07:59:09  @author simplefan
 * *** empty log message ***
 *
 *
 *
 *********************************************************************/
/*
 * Copyright 2008 gxlu, Inc. All rights reserved.
 * File name : MetaObjectEvent.java
 * Created on : Jul 30, 2009 3:35:29 PM
 * Creator : lethe
 */
package com.simplefan.meta.eda;

import com.simplefan.meta.MetaObject;

/**
 * <pre>
 * Description : TODO
 * @author simplefan
 * </pre>
 */
public class MetaObjectEvent implements Event {

  private static final long serialVersionUID = -3576805176406243188L;

  private MetaObjectEventType eventType;

  private MetaObject oldMetaObject;

  private MetaObject metaObject;

  public MetaObject getOldMetaObject() {
    return oldMetaObject;
  }

  public void setOldMetaObject(MetaObject oldMetaObject) {
    this.oldMetaObject = oldMetaObject;
  }

  public MetaObject getMetaObject() {
    return metaObject;
  }

  public void setMetaObject(MetaObject metaObject) {
    this.metaObject = metaObject;
  }

  protected MetaObjectEvent(){

  }

  public MetaObjectEvent(MetaObjectEventType eventType){
    this.eventType = eventType;
  }

  public MetaObjectEvent(MetaObjectEventType eventType, MetaObject metaObject){
    this.eventType = eventType;
    this.metaObject = metaObject;
  }

  public MetaObjectEvent(MetaObjectEventType eventType, MetaObject metaObject, MetaObject oldMetaObject){
    this.eventType = eventType;
    this.metaObject = metaObject;
    this.oldMetaObject = oldMetaObject;
  }

  public EventType getEventType() {
    return eventType;
  }

}
